import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/base.css'
import '@/assets/css/global.css' //全局修改样式
import '@/assets/font/font-zn/font.css'
import '@/assets/font/font-en/font.css'
import '@/assets/font/font-ping/font.css'
import store from '@/store/index'
import '@/plugins/flexible.js' //适配
import filter from '@/utils/vueFilter.js' //过滤器
import element from '@/plugins/element.js'
Vue.use(element)
Vue.config.productionTip = false
Vue.prototype.$EventBus = new Vue() //创建一个vm对象 作为全局事件总线
Object.keys(filter).forEach(key => Vue.filter(key, filter[key])) //全局导入过滤器

new Vue({
  router, //注册路由器
  store, //vuex
  render: h => h(App),
}).$mount('#app')